package petrochina.company.electric.http.api;

import com.hjq.http.config.IRequestApi;

import java.util.Objects;

/**
 *    desc   : 获取任务详情停电/复电步骤
 */
public final class TaskDetailStepApi implements IRequestApi {

    @Override
    public String getApi() {
        return "oper/getOperticketSteps";
    }

    private int type;
    private long code;

    public TaskDetailStepApi setType(int type) {
        this.type = type;
        return this;
    }

    public TaskDetailStepApi setCode(long code) {
        this.code = code;
        return this;
    }

    public final static class Bean {
        private long id;
        private int operTicketCode;
        private int operCode;
        private int ticketType;
        private int orderNum;
        private int equipType;
        private long equipId;
        private String equipName;
        private int operType;
        private String equipValue;
        private String operInfo;
        private String createTime;
        private String remark;
        // 0 未开始 1进行中 2 失败 3 已完成
        private int status;
        private int actEquipValue;
        // 操作标识（1：系统执行 2：人工确认）
        private int operIdentifyType;

        public long getId() {
            return id;
        }

        public void setId(long id) {
            this.id = id;
        }

        public int getOperTicketCode() {
            return operTicketCode;
        }

        public void setOperTicketCode(int operTicketCode) {
            this.operTicketCode = operTicketCode;
        }

        public int getOperCode() {
            return operCode;
        }

        public void setOperCode(int operCode) {
            this.operCode = operCode;
        }

        public int getTicketType() {
            return ticketType;
        }

        public void setTicketType(int ticketType) {
            this.ticketType = ticketType;
        }

        public int getOrderNum() {
            return orderNum;
        }

        public void setOrderNum(int orderNum) {
            this.orderNum = orderNum;
        }

        public int getEquipType() {
            return equipType;
        }

        public void setEquipType(int equipType) {
            this.equipType = equipType;
        }

        public long getEquipId() {
            return equipId;
        }

        public void setEquipId(long equipId) {
            this.equipId = equipId;
        }

        public String getEquipName() {
            return equipName;
        }

        public void setEquipName(String equipName) {
            this.equipName = equipName;
        }

        public int getOperType() {
            return operType;
        }

        public void setOperType(int operType) {
            this.operType = operType;
        }

        public String getEquipValue() {
            return equipValue;
        }

        public void setEquipValue(String equipValue) {
            this.equipValue = equipValue;
        }

        public String getOperInfo() {
            return operInfo;
        }

        public void setOperInfo(String operInfo) {
            this.operInfo = operInfo;
        }

        public String getCreateTime() {
            return createTime;
        }

        public void setCreateTime(String createTime) {
            this.createTime = createTime;
        }

        public String getRemark() {
            return remark;
        }

        public void setRemark(String remark) {
            this.remark = remark;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public int getActEquipValue() {
            return actEquipValue;
        }

        public void setActEquipValue(int actEquipValue) {
            this.actEquipValue = actEquipValue;
        }

        public int getOperIdentifyType() {
            return operIdentifyType;
        }

        public void setOperIdentifyType(int operIdentifyType) {
            this.operIdentifyType = operIdentifyType;
        }

        @Override
        public String toString() {
            return "Bean{" +
                    "id=" + id +
                    ", operTicketCode=" + operTicketCode +
                    ", operCode=" + operCode +
                    ", ticketType=" + ticketType +
                    ", orderNum=" + orderNum +
                    ", equipType=" + equipType +
                    ", equipId=" + equipId +
                    ", equipName='" + equipName + '\'' +
                    ", operType=" + operType +
                    ", equipValue='" + equipValue + '\'' +
                    ", operInfo='" + operInfo + '\'' +
                    ", createTime='" + createTime + '\'' +
                    ", remark='" + remark + '\'' +
                    ", status=" + status +
                    ", actEquipValue=" + actEquipValue +
                    ", operIdentifyType=" + operIdentifyType +
                    '}';
        }

        @Override
        public boolean equals(Object o) {
            if (this == o) return true;
            if (!(o instanceof Bean)) return false;
            Bean bean = (Bean) o;
            return getId() == bean.getId();
        }

        @Override
        public int hashCode() {
            return Objects.hash(getId());
        }
    }
}